
package AccesoDatos;

import java.sql.Connection;
import java.sql.DriverManager;

public class ConexionDA {
    
    public static Connection GetConexion(){
        try{
            Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
            Connection con = DriverManager.getConnection("jdbc:sqlserver://localhost;databaseName=BD_SISRECBBVA", "dev_bbva", "123456");
          return con;
        }catch(Exception ex){
            ex.printStackTrace();
            return null;
        }
    }
    
}
